package com.hanamaki.dataStructDemo;

import java.util.List;

public class Student<T> {

    private T name;
    private T age;
    private T sex;
    private List<?> hobbies;
    private T score;

    // alt + inset


    public Student() {
    }

    public Student(T name, T age, T sex, List<?> hobbies, T score) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.hobbies = hobbies;
        this.score = score;
    }

    public T getName() {
        return name;
    }

    public void setName(T name) {
        this.name = name;
    }

    public T getAge() {
        return age;
    }

    public void setAge(T age) {
        this.age = age;
    }

    public T getSex() {
        return sex;
    }

    public void setSex(T sex) {
        this.sex = sex;
    }

    public List<?> getHobbies() {
        return hobbies;
    }

    public void setHobbies(List<?> hobbies) {
        this.hobbies = hobbies;
    }

    public T getScore() {
        return score;
    }

    public void setScore(T score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name=" + name +
                ", age=" + age +
                ", sex=" + sex +
                ", hobbies=" + hobbies +
                ", score=" + score +
                '}';
    }
}
